package river_city_ransom.decorators;

import exceptions.ComposantError;
import river_city_ransom.services.Bloc;
import river_city_ransom.services.Position;
import river_city_ransom.types.BlocType;

public class Bloc_D  implements Bloc {
	private Bloc delegate;
	
	public Bloc_D(Bloc delegate){
		this.delegate = delegate;
	}
	
	public Bloc delegate() {
		return delegate;
	}
	
	@Override
	public boolean equals(Object o) {
		return delegate().equals(o);
	}
	
	@Override
	public String toString() {
		return delegate().toString();
	}
	
	/** _________________________________________________________ OBSERVATORS */
	@Override
	public BlocType type() {
		return delegate().type();
	}

	@Override
	public Position position() {
		return delegate().position();
	}

	/** ________________________________________________________ CONSTRUCTORS */
	@Override
	public void init(BlocType bt, Position p) throws ComposantError {
		delegate().init(bt, p);
	}

}
